Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6320273
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T15:56:31+00:00 2026-05-24T15:56:31+00:00

Okay, I know how to catch usual lowercase letters. I’m using KeyboardEvent.KEY_DOWN and compare

  • 0

Okay, I know how to catch usual lowercase letters. I’m using KeyboardEvent.KEY_DOWN and compare the code to the ASCII table to find out which key was pressed. Now, I also want to be able to find out if there is, for example SHIFT+A pressed, and I have no idea how to implement this. I mean, in my program SHIFT and A are absolutely different keys which have nothing to do with each other, and they both will call KeyboardEvents when pressed. In Georgian alphabet some letters are typed by combination of SHIFT and English letters, for example W on Georgian keyboard means წ, when SIFT+W means ჭ. Absolutely different letters, as you can see. And I want to be able to catch both, coz I’m currently developing Georgian-language game. Any help will be appreciated. Thanks in advance 🙂

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-24T15:56:32+00:00Added an answer on May 24, 2026 at 3:56 pm

    Take a look at the KeyEvent class. It provides you with the infos on if the shift key was pressed or not. Look at this example:

    stage.addEventListener (KeyboardEvent.KEY_DOWN, keyDownHandler);
    
    function keyDownHandler (e:KeyboardEvent):void {
        trace("Key code: "+e.keyCode);
        trace("Ctrl status: "+e.ctrlKey);
        trace("Key location: "+e.keyLocation);
        trace("Shift key: "+e.shiftKey);
    }
    

    This is an example output:

    (pressing the "a" key)
    Key code: 65
    Ctrl status: false
    Key location: 0
    Shift key: false
    
    (pressing the SHIFT first for shift+a)
    Key code: 16
    Ctrl status: false
    Key location: 1
    Shift key: true
    
    (pressing the "a" key while still holding shift)
    Key code: 65
    Ctrl status: false
    Key location: 0
    Shift key: true
    

    As you can see the combination of KeyboardEvent.keyCode and KeyboardEvent.shiftKey hold the information which you are looking for.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Okay, I know it is weird but when I put this code between <head
Okay, I know I must be missing something obvious here. Here's the sample code
Basically, I'd like to know if this code is okay, <body id=some_id <!--[if lt
Okay I know I asked about this before, and the answer was basically cache
Okay I know this is a really lame question because Starbasic is a really
Okay. I know this looks like the typical Why didn't he just Google it
Okay, we know that the following two lines are equivalent - (0 == i)
Okay, I know that 1) this is probably not possible with CSS alone and
Okay so I know I asked a similar question a while ago, but this
Okay I do not even know where to begin when it comes to this

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.