Support escape and space keys