Keyboard constants - cherry-picked version

Actually, here, I cherry picked it for you