If you don't know how to style your code and want to make it easier for the forum folk to read please use my
GS2 Beautifier to clean it up before posting.
The two checks in your key pressed are redundant which also make it confusing in the process.
Not a fan of using temp once then not using it through out.
You don't really need to evaluate for true/false like that either you could just use but that's ultimately personal preference:
PHP Code:
if (this.boots == true) { // if (this.boots) { // is also fine.
// boots are on
} else {
// boots are off
}