Preventing default on keypress in Monoterm