GameObject change with input

Hello, I need help again, I would like to know how to add several gameObject and exchange with key.

public var cursorPrefab : GameObject;
if (cursorPrefab) {
			cursorObject = (Instantiate (cursorPrefab) as GameObject).transform;

For example, add several gameObject and each time I press a key is changing. Thank you! :wink:

Not very sure what you need and donโ€™t even know where you are calling this code. Is it in start/update?

Iโ€™m also not sure what you want, but for finding out whether a key is pressed you can use Input.anyKeyDown.