Disable the activation of the menu bar when Alt is pressed in Windows 7

I've been using AutoHotkey already, so I added this line to my script and it fixed this annoying behavior in almost all applications:

~LAlt Up:: return

It doesn't work in IE but I don't use IE anyway. :)

BTW, I also killed the annoying start menu popup via:

~LWin Up:: return
~RWin Up:: return

This autohotkey does work for me on Windows 10:

Alt::Return ;Disables the key alt when it's pressed alone

(Zengabor's answer did not work for me).

All the glory to Rohwedder