(LibGdx)TextField not receiving input

I have other UI using Scene2D, but the textfield wont take in any input. HEre’s how i initialize it.

txtUsername = new TextField("", mSkin);
 txtUsername.setMessageText("test");
mStage.addActor(txtUsername);

It is draw but I can’t input text. I looked through the docs; amI doing something wrong?