Don't call evt.preventDefault() for plain "w" keypress, fixes #17358
(cherry picked from commit ab187ff8aeecd9cfcd7e32b1e37656284531fea3)