keypress ported to a standalone input module, cursor unbreakable