Move variable declaration in JP_DrawMovementKeys
Fix compilation issues and uninitialised variables
Added g_debugTrace to visualise where unlagged traces occur