• Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges

Getkey

Cancel

Cancel

All Questions

  • Unanswered Questions
avatar image

duvaork1 published

How to disable Input Events (OnKeyDown etc.) while editing InputField?

Apr 5, '21 in Help Room

2 Replies

0 Votes

avatar image

aRCHmage333 published

XInput gamepad dropping out on Input.GetKey - Alternating between True and False,XInput Gamepad dropping out (True-False) while holding a button down

Mar 2, '21 in Help Room

0 Replies

0 Votes

avatar image

TobiasString commented

Is there a substitution for GetKey() for a Gamepad controller in the Input Manager?

Feb 3, '21 2d game·player·addforce·gamepad·getkey

1 Reply

0 Votes

avatar image

Kerdar published

How can i rotate and tilt a space ship on the same button press?,How can i make a spaceship both rotate and tilt on button press?

Jan 21, '21 in Help Room

0 Replies

0 Votes

avatar image

sansuno68 asked

Get pressed Keyboard key after pressing UI Button

Dec 5, '20 ui·input·settings·getkey·getbutton

0 Replies

0 Votes

avatar image

Maggiethegsd answered

If Get key not working

Nov 5, '20 if statement·getkey

2 Replies

0 Votes

avatar image

BIGSIPOFCOFFEE answered

Dialog system - Spacebar continue

Oct 14, '20 system·dialogue·getkey

2 Replies

0 Votes

avatar image

Hellium edited

GetKey is not working...

Jul 19, '20 getkey

5 Replies

0 Votes

avatar image

BennIBol edited

Invisible particle system bug

Jul 7, '20 in Help Room

0 Replies

0 Votes

avatar image

calegxm999 published

Multiple Input.GetKey

Jun 23, '20 multiple·key·getkey

5 Replies

1 Votes

avatar image

adilpwr11 asked

To make the Getkey function false right away when the player reach to a specific position.

Jun 15, '20 in Help Room

0 Replies

0 Votes

avatar image

suryono021 published

How to put delay after input key

Jun 9, '20 in Help Room

0 Replies

0 Votes

avatar image

suri44 answered

Toggle Boolean by Input.getKey like if pressed one time true next time false and so on.

Jun 9, '20 toggle·booleans·getkey

4 Replies

0 Votes

avatar image

comolokko11 commented

assign another key

Jun 3, '20 in Help Room

0 Replies

0 Votes

avatar image

TheRedGuy90 commented

GetKey/GetKeyDown, Paired with Adjusting Stats

May 19, '20 c#·text·update·getkeydown·getkey

1 Reply

0 Votes

avatar image

Schaden commented

How come an object doesn't rotate when the Transform -> Rotation value gets changed?

Apr 29, '20 in Help Room

1 Reply

0 Votes

avatar image

Juli458 asked

GetAxis very smoothed or have a small delay when i press a key

Apr 23, '20 in Help Room

0 Replies

0 Votes

avatar image

hnvasa commented

Only KeyPress once?

Mar 30, '20 input·keycode·getkey·press

1 Reply

5 Votes

avatar image

arthurconnor100 edited

Send Keys to Background Window

Jun 22, '19 input·sendmessage·getkey

0 Replies

0 Votes

avatar image

knightmar commented

GetKey problem on client

May 6, '19 client·getkeydown·getkey·repeat·ontrigger

0 Replies

0 Votes

avatar image

WarmedxMints commented

how can i use getkey and getkeydown for two diffrent functions.

Feb 27, '19 input·getkeydown·getkey

2 Replies

0 Votes

avatar image

tormentoarmagedoom commented

How to get Key with KeyCode.Question?

Jan 28, '19 c#·keyboard·keycode·keypress·getkey

1 Reply

0 Votes

avatar image

Thomas-Hawk edited

SOLVED - After using Unity Remote and accidentally hitting some button in Visual Studio, Input no longer detects keyboard unless the mouse is held down. Please, help.

Jan 7, '19 input·not working·keyboard·remote·getkey

0 Replies

0 Votes

avatar image

hannacho700 commented

Sometimes "GetKey" does not work. why?

Dec 3, '18 keyboard·getkey

1 Reply

0 Votes

avatar image

osteboste answered

I am having some issues with using Input.GetMouseButton the same time as Input.GetKey...

Dec 1, '18 getkey·getmousebutton

2 Replies

0 Votes

avatar image

hannacho700 commented

why does unity execute if-statement?

Nov 30, '18 if-statements·getkey

1 Reply

0 Votes

avatar image

junaid2k answered

Refactor code from getting input from keyboard to get input from UI Buttons

Oct 25, '18 ui·button·input·keyboard·getkey

1 Reply

0 Votes

avatar image

singingstranger commented

Dialogue with GetKey - Codes Closed

Jul 30, '18 getkeydown·getkey·dialog·getkeyup

1 Reply

0 Votes

avatar image

luckymonk3 edited

How do I make my "PlayerMovement" script and "Use Gravity" checkbox (rigidbody) enable when I click SPACEBAR in game?

Jul 17, '18 in Help Room

1 Reply

0 Votes

avatar image

ramonmhamilton asked

How can I have the video player in 5.6 ONLY play the video if a certain key is being held down?

Jul 12, '18 in Help Room

0 Replies

0 Votes

  • 1
  • 2
  • 3
  • 4
  • 5
  • ›

Followers

avatar image

Welcome to Unity Answers

The best place to ask and answer questions about development with Unity.

To help users navigate the site we have posted a site navigation guide.

If you are a new user to Unity Answers, check out our FAQ for more information.

Make sure to check out our Knowledge Base for commonly asked Unity questions.

If you are a moderator, see our Moderator Guidelines page.

We are making improvements to UA, see the list of changes.



Related Topics

input getkeydown c# getkeyup update getbutton rotation keycode animation keyboard button if-statements getaxis gui key boolean movement scripting problem audio mobile if statement ui if jumping transform


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges