zero out pressed keys to avoid editing errors