How to make small vk letters like case VK_k instead of VK_K? using Switch Case Thanks
public void onKeyPressed(KeyEvent e){
switch(e.getKeyCode()){
case VK_K:
moveDirection=1;
moveAmount = Double.POSITIVE_INFINITY;
break;
case VK_L: moveDirection=-1;
moveAmount = Double.POSITIVE_INFINITY;
break;
case VK_H: turnDirection=-1;
break;
case VK_J: turnDirection=1;
break;
case VK_SPACE: firePower = 1;
break;
}
}