added a keylistener for weapons class