My code isn't working, can someone please help

Have you tried replacing KEY_LEFT_ALT with some simple key like "Q", that you can easily verify on the PC side?