key B

Placing key B inside the keyPressed rather than a seperate if