fixed a tab issue in hal and controller.py now works with PS2 controller