$ ./prueba
^[[A^[[B^[[C^[[D
You pressed key ID: 27 1b
You pressed key ID: 91 5b
You pressed key ID: 65 41
You pressed key ID: 27 1b
You pressed key ID: 91 5b
You pressed key ID: 66 42
You pressed key ID: 27 1b
You pressed key ID: 91 5b
You pressed key ID: 67 43
You pressed key ID: 27 1b
You pressed key ID: 91 5b
You pressed key ID: 68 44
You pressed key ID: 10 0a