How to use Hashmaps for key bindings?
<p>I am making a basic little game in Java and I want to have it so that I can use Hashmaps for binding keys..</p>

<p>e.g.- it would be like HashMap
and then I would do:
    hashmap.add(Keys.up, VK_UP);</p>

<p>but this is where I get to my problem, How do i access the hashmap and choose which keys are pressed when the KeyListener returns a pressed key?</p>

<p>Sorry if this question seems baffling but I'm really confused too.. </p>
