Basic moving problem.

Hello guys …

I have 2 basic questions . Can u help me plz

**1- I want to make my player to move to (right / left) if he inter the trigger . **

Example: my player is moving forward , if he inter the trigger , he move to right , that’s it .

2- is there anyway of controlling the input , I mean to make the game inter the input behalf of the player .

Example : my player is moving forward , if he inter the trigger , i active the (moving to the right input - like E key- ) without making the player actuality hit the ( moving to the right input -like E key -) .

Thanks for helping .