Reduce latency and better button polling for combat attack && codestyle