Keyboard.press not doing anything on a Chromebook

I have a program here that just does Ctrl A, types A, and types a.

#include <Keyboard.h>
void setup() {
  delay(500);
  Keyboard.begin();
  
  Keyboard.press(KEY_LEFT_CTRL);
  Keyboard.press('a');
  Keyboard.releaseAll();

  Keyboard.press(KEY_LEFT_SHIFT);
  Keyboard.press('a');
  Keyboard.releaseAll();

  Keyboard.press('a');
  Keyboard.releaseAll();
}

void loop() {

}

Problem is, nothing actually happens when running the program on a Chromebook. If it is run on Windows it works fine. I've also tried using Keyboard.print and it surprisingly works. Anyone know what is happening or how I can fix it?