What is the best input to cancel the insertion of an object during gameplay?

In my game, the player inserts objects and drags them with the mouse to drop them somewhere in 3D space.
To confirm, the player clicks the left mouse button.

In most games, when a player wants to cancel an entry, they just press the ESCAPE key. However, ESC is a RESERVED KEY in Roblox and cannot be used in a script.

So I tried to cancel the insertion with the right mouse button. But the right button is used to rotate the view, which is important for the game during the object insertion process.

So I can’t use either ESC or the mouse.

What is the best input to cancel the insertion of an object during gameplay?

1 Like

Maybe Enum.KeyCode.X?

1 Like

Is X a commonly used key for these cases? Have you ever seen this in a game? Or is it just an idea, as it could be any other key…

Yes, I’ve seen X be used before.

1 Like

On second thought… you could change Rotate to Enum.KeyCode.R and keep cancel insertion at right-click.