Hacked around it by only accepting enter and ESC