What are the command for this...if(self **buttonpressed())

I know
Code:
self usebuttonpressed() to use with F,
but what are the other command.

Precisely I want the one to sprint??




I don't know if u will understand me