Entity Rotation Delayed Then Deleted

Hello. I am new to PLAYCANVAS and web development, and am trying to make a training game. Currently, I only have a basic entity that is translated and rotated by the W A S D Q E keys. For some reason, I can translate the entity with no trouble. But to rotate it, I have to hold down the Q or E key for several seconds to rotate the entity. Then, if I try to translate it again, it cancels the rotation and snaps back to the angle it had on initiation. I have tried making a separate script that only handles rotation and some other things with the syntax. But, it only did the same thing. I am not sure whether this is a bug in the engine itself, or a programing error.

As it’s a physics object, the physics simulation overrides the entity rotation every update. To rotate a physics object, use torque: https://developer.playcanvas.com/en/api/pc.RigidBodyComponent.html#applyTorque