Keyboard binding skill buttons

Guys i wanna know how can i change the state of a button between normal and pressed but using the keyboard, i would like to implement a skill bar.