change KeyCode const prefix from KEY_ to CODE_
adding features and tests to key.go