Allow escape and arrow keys to be used in the advanced inventory