prevent character submission after enter/return