added constants
test ok

except of the getkey values on ubuntu