ESC remap has bizarre unexpected consequences; cf. http://goo.gl/0ueM5t

Remapping the <ESC> key not only creates garbage output with you hit <ESC>, it also disables the function keys and creates all kinds of unintended behavior. Cf. this Stackoverflow answer for a fuller explanation: http://goo.gl/0ueM5t.