use input not keydown
Merge pull request #1 from Raynos/patch-1

use input not keydown