add keypress function and code for detect left key, but doesn't work yet.