Ok this will sound ridiculous. When i hold down the shift key in unity, the “a” key doesnt work, ie. no getkeydown events for “a” or getaxisraw(“Horizontal”) in the left direction work! And if press shift key while holding the “a” key and then release the a key, unity keeps receiving the GetKey(KeyCode.A) events non-stop and stops when i click the “a” key again. Sounds ridiculous i know, never faced a bug like this before. Something to note is, the a key works fine with shift on my system, i mean can type caps “A”. I am using the linux editor for unity and I tried my laptops and external keyboards. I never faced anything similar in unity before and the a key always worked fine with shift!! Can anyone try running this script and tell me if u can use the a key while shift is down. I am using the latest unity 2020.1.2f1. If the script works for you guys I feel like it could be the linux editor issue, new unity version issue, my systems specific issue(havent developed much on this system and since i use arch linux could be some tricky thing i might need to setup :/). Thanks! Hope it is actually a bug and not me being a complete fool!
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
public class testA : MonoBehaviour
{
// Start is called before the first frame update
void Start()
{
}
// Update is called once per frame
void Update()
{
if(Input.GetKeyDown(KeyCode.A)){
print("a key down");
}
}
}
Update 1: I doubt it is my script since i removed it and only had 1 script that registered the “a” key down event and again it didnt work if i held down shift!