Added keypress timeout.